.class Lcom/xingbook/ui/b;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/xingbook/ui/DragOrderGridView;


# direct methods
.method constructor <init>(Lcom/xingbook/ui/DragOrderGridView;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    const-wide/16 v3, 0x19

    iget-object v0, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    invoke-static {v0}, Lcom/xingbook/ui/DragOrderGridView;->g(Lcom/xingbook/ui/DragOrderGridView;)I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    invoke-static {v1}, Lcom/xingbook/ui/DragOrderGridView;->h(Lcom/xingbook/ui/DragOrderGridView;)I

    move-result v1

    if-le v0, v1, :cond_0

    const/16 v0, 0x14

    iget-object v1, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    invoke-static {v1}, Lcom/xingbook/ui/DragOrderGridView;->i(Lcom/xingbook/ui/DragOrderGridView;)Landroid/os/Handler;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    invoke-static {v2}, Lcom/xingbook/ui/DragOrderGridView;->j(Lcom/xingbook/ui/DragOrderGridView;)Ljava/lang/Runnable;

    move-result-object v2

    invoke-virtual {v1, v2, v3, v4}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    :goto_0
    iget-object v1, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    iget-object v2, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    invoke-static {v2}, Lcom/xingbook/ui/DragOrderGridView;->l(Lcom/xingbook/ui/DragOrderGridView;)I

    move-result v2

    iget-object v3, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    invoke-static {v3}, Lcom/xingbook/ui/DragOrderGridView;->g(Lcom/xingbook/ui/DragOrderGridView;)I

    move-result v3

    invoke-static {v1, v2, v3}, Lcom/xingbook/ui/DragOrderGridView;->a(Lcom/xingbook/ui/DragOrderGridView;II)V

    iget-object v1, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    const/16 v2, 0xa

    invoke-virtual {v1, v0, v2}, Lcom/xingbook/ui/DragOrderGridView;->smoothScrollBy(II)V

    return-void

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    invoke-static {v0}, Lcom/xingbook/ui/DragOrderGridView;->g(Lcom/xingbook/ui/DragOrderGridView;)I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    invoke-static {v1}, Lcom/xingbook/ui/DragOrderGridView;->k(Lcom/xingbook/ui/DragOrderGridView;)I

    move-result v1

    if-ge v0, v1, :cond_1

    const/16 v0, -0x14

    iget-object v1, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    invoke-static {v1}, Lcom/xingbook/ui/DragOrderGridView;->i(Lcom/xingbook/ui/DragOrderGridView;)Landroid/os/Handler;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    invoke-static {v2}, Lcom/xingbook/ui/DragOrderGridView;->j(Lcom/xingbook/ui/DragOrderGridView;)Ljava/lang/Runnable;

    move-result-object v2

    invoke-virtual {v1, v2, v3, v4}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    iget-object v1, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    invoke-static {v1}, Lcom/xingbook/ui/DragOrderGridView;->i(Lcom/xingbook/ui/DragOrderGridView;)Landroid/os/Handler;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/ui/b;->a:Lcom/xingbook/ui/DragOrderGridView;

    invoke-static {v2}, Lcom/xingbook/ui/DragOrderGridView;->j(Lcom/xingbook/ui/DragOrderGridView;)Ljava/lang/Runnable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    goto :goto_0
.end method
